using UnityEngine;
using System.Collections;

public class CMenuScene : CBaseScene
{

	// Use this for initialization
	void Start () {
		if( false == CGlobalMgr.Instance.Initialize() )
		{
			Debug.LogError(" false == CGlobalMgr.Instance.Initialize() ");
		}
	}
	
	// Update is called once per frame
	void Update () {
        if (true == Input.GetKey("escape"))
        {
            Application.Quit();
        }
	}

    void OnGUI() 
    {
		//TouchScreenKeyboard Keyboard;
		//Keyboard = TouchScreenKeyboard.Open("UserName", TouchScreenKeyboardType.Default);

        Vector2 vCenterPos = new Vector2( Screen.width/2, Screen.height/2 );
		if (true == GUI.Button(new Rect(vCenterPos.x - (Screen.width / 4), 
			vCenterPos.y - (Screen.height / 4),
			(Screen.width / 2),
			(Screen.height / 2)), "STARTGAME") )
        {
			Application.LoadLevel((int)E_SCENE.ePLAYGAME);
        }
    }
}
